package domain.testng;

/**
 * Created by zhifu on 2015/3/23.
 */
public class MessageUtil {
    private  String message;

    public MessageUtil(String message) {
        this.message = message;
    }

    public String printMessage(){
        System.out.println(message);
        return message;
    }

    public String salutation(){
        String str = "tutorialPoint"+message;
        System.out.println(str);
        return str;
    }

    public String exitMessage(){
        String message1 = "www.tutorialPoint"+ message;
        System.out.println(message1);
        return message1;
    }

    public void calculateMessage(){
        int a=0;
        int b =1/a;
    }

    public String dependMessage(){
        String message = "hello depend";
        System.out.println("message");
        return  message;
    }
}
